home *** CD-ROM | disk | FTP | other *** search
- Variable Zahl1,2
- Variable Zahl2,2
-
- LABEL START
- Clear 10
-
- LABEL FALSCH1
- WriteAt 1,1 "Bitte erste Zahl eingeben (0-99) : "
- GotoXY 37,1
- ReadStr Zahl1
- Compare Zahl1,"0",,FALSCH1
- Compare Zahl1,"99",FALSCH1
-
- LABEL FALSCH2
- WriteAt 1,2 "Bitte zweite Zahl eingeben (0-99): "
- GotoXY 37,2
- ReadStr Zahl2
- Compare Zahl2,"0",,FALSCH2
- Compare Zahl2,"99",FALSCH2
- Color 14
- WriteAt 1,4 Zahl1
- Compare Zahl1,Zahl2,GRÖSSER,KLEINER
- Write " und "
- Write Zahl2
- Write " sind gleich groß."
- GOTO ABFRAGE
-
- LABEL GRÖSSER
- Write " ist größer als "
- Write Zahl2
- Write "."
- GOTO ABFRAGE
-
- LABEL KLEINER
- Write " ist kleiner als "
- Write Zahl2
- Write "."
-
- LABEL ABFRAGE
- Color 12
- GotoXY 1,6
- ReadJN "Noch einmal? [J/N]",Zahl1
- Compare Zahl1,"J",,,START
-